<?php
namespace app\index\validate;

use think\Validate;

/**
 * 前台注册验证
 * Class Regist
 * @package app\api\validate
 */
class Regist extends Validate {

    protected $rule = [
        'mobile'       => 'require|unique:member',
        'password'     => 'require',
        'password2'    => 'confirm:password'
    ];

    protected $message = [
        'mobile.require'     => '请输入手机号',
        'mobile.unique'      => '手机号已存在',
        'password.require'   => '请输入密码',
        'password2.confirm'  => '两次输入密码不一致'
    ];
}